//护理记录
import request from "@/utils/request";

// 查询护理记录列表
export function listNurse(query) {
  return request({
    url: "/nursing/record/list",
    method: "post",
    data: query,
  });
}

//新增护理记录
export function addNurse(data) {
  return request({
    url: "/nursing/record",
    method: "post",
    data,
  });
}

//修改护理记录
export function updateNurse(data) {
  return request({
    url: "/nursing/record",
    method: "put",
    data,
  });
}

//删除护理记录
export function deleteNurse(id) {
  return request({
    url: "/nursing/record/" + id,
    method: "delete",
  });
}

// 查询护理记录详情
export function getNursing(id) {
  return request({
    url: "/nursing/record/" + id,
    method: "get",
  });
}

// 审核护理记录
export function auditNurse(data) {
  return request({
    url: "/nursing/record/audit",
    method: "post",
    data,
  });
}

// 取消护理记录
export function cancelNurse(id) {
  return request({
    url: "/nursing/record/stop/" + id,
    method: "get",
  });
}
